package com.li.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "student")
@Component
public class Student {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "username")
    private String username;

    @TableField(value = "age")
    private Integer age;

    @TableField(value = "bid")
    private Integer bid;

    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private String bname;


    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_AGE = "age";

}